package panels;

import org.apache.wicket.ajax.AjaxRequestTarget;

import cruds.services.CrudCreateService;
import cruds.services.ServiceList;
import home.Home;

@SuppressWarnings("serial")
public class DynamicMenu extends MyPanel{

	public DynamicMenu( Home home) {
		super("menu", home);
	}

	@Override
	public void changePanel(AjaxRequestTarget target) {
		this.getHome().getMenu().replaceWith(this);
		this.getHome().changePanel(target,this);
		this.getHome().setMenu(this);
	}
	
	
}
